// app.js
App({
    onLaunch() {
        // 展示本地存储能力
        const logs = wx.getStorageSync('logs') || []
        logs.unshift(Date.now())
        wx.setStorageSync('logs', logs)

        // 登录
        wx.login({
            success: res => {
                // 发送 res.code 到后台换取 openId, sessionKey, unionId
            }
        })
    },
    globalData: {
        api: 'http://localhost:9090/api',
        // api: 'http://113.44.47.239:9090/api',
        // pyapi: 'http://localhost:7000',
        pyapi: 'http://45.207.156.240:15155',
        userInfo: null,
        access_token:'92_QovNWYDaKvAcuiVdS2yn7X2xJe5AYUrVthN-Nhp5VN4U_de_2BJoHg8RuDAoG_KUqZK56BP7yXkevUvr1lgWkZ5_Ott0wAEApwR3DvO2Yn8tsOGParejC5jk16sSLCjAJAMFW'
    }
})
